package com.jihu.design.behavioral.state;

/**
 * @author jihu
 * @date 2021/9/28
 */
public class SKTTeam {

    private TeamState teamState;

    public SKTTeam setTeamState(TeamState teamState) {
        this.teamState = teamState;
        return this;
    }

    //开始游戏
    public void startGame(){
        //状态不同会导致不同的游戏结果
        teamState.playGame();
    }

    //下一个状态
    void nextState(){
        this.teamState = teamState.next();
    }
}
